Conversation
| * @param clazz the class to check; never {@code null} | ||
| * @return {@code true} if the class is {@code public} | ||
| * @see java.lang.reflect.Modifier#isPublic(int) | ||
| * @see Modifier#isPublic(int) |
There was a problem hiding this comment.
only this unrelated change is quite impressive having a very modern codebase.
Changes have been made to junit-platform-commons/src/main/java/org/junit/platform/commons/support/ModifierSupport.java by:
org.openrewrite.java.migrate.UpgradeToJava17
org.openrewrite.java.migrate.RemovedModifierAndConstantBootstrapsConstructors
org.openrewrite.java.ChangeMethodTargetToStatic: {methodPattern=java.lang.reflect.Modifier *(..), fullyQualifiedTargetTypeName=java.lang.reflect.Modifier}
76d6a50 to
e5ce836
Compare
...ooling-support-tests/src/test/java/platform/tooling/support/tests/ModularUserGuideTests.java
Show resolved
Hide resolved
e5ce836 to
ff14a5c
Compare
StreamRulesRecipesStreamRulesRecipes
| apply(from = "gradle/rewrite.gradle") | ||
|
|
There was a problem hiding this comment.
Apply from is an anti-pattern, and JUnit bundles build plugins under https://github.com/Pankraz76/junit5/tree/main/gradle/plugins
There was a problem hiding this comment.
Yes, thanks for the update. I can see where this is going, but I currently don’t have any idea how to fix it.
Can we handle this later, or could someone else please add it?
I’ve seen a similar approach from Elastic — it’s quite nice and straightforward, almost just a copy-and-paste calling the same API in the code configuration, like from a Gradle file.
There was a problem hiding this comment.
imho this is not possible yet right? as the api does not offer rewrite, yet...
junit-platform-commons/src/main/java/org/junit/platform/commons/util/CollectionUtils.java
Outdated
Show resolved
Hide resolved
b6199e1 to
9ac0045
Compare
Changes have been made to junit-platform-commons/src/main/java/org/junit/platform/commons/support/ModifierSupport.java by:
org.openrewrite.java.migrate.UpgradeToJava17
org.openrewrite.java.migrate.RemovedModifierAndConstantBootstrapsConstructors
org.openrewrite.java.ChangeMethodTargetToStatic: {methodPattern=java.lang.reflect.Modifier *(..), fullyQualifiedTargetTypeName=java.lang.reflect.Modifier}
Signed-off-by: Vincent Potucek <vpotucek@me.com>
9ac0045 to
0af17df
Compare
rewritesupport forerrorprone.refasterrulesjunit-team/junit-framework#5002I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@APIannotations